package com.admission.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

//校园生活相关图片
@Entity
@Table(name = "environment_picture")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class EnvironmentPicture extends IdEntity{
	private String title;
	private String url;// 图片路劲
	private Environment environment;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	@ManyToOne
	@JoinColumn(name = "environment_id")
	public Environment getEnvironment() {
		return environment;
	}

	public void setEnvironment(Environment environment) {
		this.environment = environment;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

}
